package com.nineclock.system.feign;


import com.nineclock.common.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("sys-service") //远程调用时使用的名字
public interface SysOrganizationFeign  {


    @GetMapping("/organization/department/top")
    public Result<List<Long>> queryDepartmentIds();

    //如果是feign接口中的get请求,参数必须要加一个注解: @RequestParam
    @GetMapping("/organization/department/membernum")
    public Result<Integer> queryUserCountByDepartmentIds(@RequestParam("departmentIds") List<Long> departmentIds);
}
